// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastclick from 'fastclick'
import "babel-polyfill"
import "./common/stylus/index.styl"
import 'lib-flexible'
import VueLazyload from 'vue-lazyload'
// require styles

import VueAwesomeSwiper from 'vue-awesome-swiper'
import '../node_modules/_swiper@4.5.0@swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)

//配置图片懒加载
Vue.use(VueLazyload, {
  loading: require("./common/image/default.png")
})


Vue.config.productionTip = false
fastclick.attach(document.body) //解决移动端点击300ms延迟问题


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {
    App
  },
  template: '<App/>'
})
